<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Add Horse</title>
</head>
<body>
<form action="@{Horses.AddHorse()}" method="get">
<p><b>Horse Name : </b></p><input type="text" name="Name" required>
<p><b>Horse Description : </b></p>
<textarea name="Description" required></textarea><br>
<p><b>Date Of Birth : </b></p> <input type="text" name = "DateOfBirth" required>
<p><b>Country Origin : </b></p> <input type="text" name = "CountryOrigin" required>
<br><br>
<input type="submit" name="submit" value="Add Horse">

</form>
#{if flash.error}
    <p style="color:#c00">
        ${flash.error}
    </p>
#{/if}
 
</body>
</html>